public class Test6 {
    public static void main(String[] args) {
        ShowMsg showMsg=new ShowMsg();
        Generic<Integer> generic=new Generic();
        generic.setFlag(20);
        showMsg.showMsg(generic);
        Generic<Number> generic1=new Generic();
        generic1.setFlag(123);
        showMsg.showMsg(generic1);
   /*     Generic<String> generic2=new Generic();
        generic2.setFlag();
        showMsg.showMsg(generic2);*/
    }
}
